package com.smzd.framework.utils.db;

import com.smzd.core.domain.IScopeOwnedEntity;
import com.smzd.core.domain.IntIdEntity;

public class SORPage<S extends IntIdEntity, O extends IntIdEntity, E extends IScopeOwnedEntity<S, O>> extends
		SRPage<S, E> implements Ownerable<O> {

	private O owner;

	public void setOwner(O owner) {
		this.putParam("ownerid", owner == null ? null : owner.getId());
		this.owner = owner;
	}

	public O getOwner() {
		return owner;
	}
}
